﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ueEngine.Framework.Empires
{
    public class Method
    {
        public static string SystemMethod(string name, string identity)
        {
            switch (name)
            {
                case "GetDateTimeWithLongDate": //当前日期，2011年4月3日
                    return DateTime.Now.ToLongDateString();
                case "GetDateTimeWithShortDate": //当前日期, 2011/4/3
                    return DateTime.Now.ToShortDateString();
                case "GetDateTimeWithLDateAndDayOfWeek": //当前日期+星期几，2011年4月3日 星期天
                    switch (DateTime.Now.DayOfWeek)
                    {
                        case DayOfWeek.Monday:
                            return DateTime.Now.ToLongDateString() + "　　星期一";
                        case DayOfWeek.Tuesday:
                            return DateTime.Now.ToLongDateString() + "　　星期二";
                        case DayOfWeek.Wednesday:
                            return DateTime.Now.ToLongDateString() + "　　星期三";
                        case DayOfWeek.Thursday:
                            return DateTime.Now.ToLongDateString() + "　　星期四";
                        case DayOfWeek.Friday:
                            return DateTime.Now.ToLongDateString() + "　　星期五";
                        case DayOfWeek.Saturday:
                            return DateTime.Now.ToLongDateString() + "　　星期六";
                        case DayOfWeek.Sunday:
                            return DateTime.Now.ToLongDateString() + "　　星期天";
                    }
                    return "";
                case "GetDateTimeWithSDateAndDayOfWeek": //当前日期+星期几，2011/4/3 星期天
                    switch (DateTime.Now.DayOfWeek)
                    {
                        case DayOfWeek.Monday:
                            return DateTime.Now.ToShortDateString() + "　　星期一";
                        case DayOfWeek.Tuesday:
                            return DateTime.Now.ToShortDateString() + "　　星期二";
                        case DayOfWeek.Wednesday:
                            return DateTime.Now.ToShortDateString() + "　　星期三";
                        case DayOfWeek.Thursday:
                            return DateTime.Now.ToShortDateString() + "　　星期四";
                        case DayOfWeek.Friday:
                            return DateTime.Now.ToShortDateString() + "　　星期五";
                        case DayOfWeek.Saturday:
                            return DateTime.Now.ToShortDateString() + "　　星期六";
                        case DayOfWeek.Sunday:
                            return DateTime.Now.ToShortDateString() + "　　星期天";
                        default:
                            return string.Empty;
                    }
                default:
                    return string.Empty;
            }
        }

        public static List<DefaultDataPack> ReflectionMethod(string name, string identity)
        {
            return null;
        }
    }
}
